import request from '@/utils/request'
import {projectApiUrl} from '../config'
/**
 * 分包商答辩列表
 * @param parameter
 */
export function getdefenceRecordsList(parameter){
  return request({
    url: projectApiUrl+'/sub-contract-reply/list',
    method: 'post',
    data: parameter
  })
}

/**
 * 查看分包商答辩详情
 * @param id
 */
export function getdefenceRecordOne(id){
  return request({
    url: projectApiUrl+'/sub-contract-reply/details',
    method: 'get',
    params: id
  })
}


/**
 * 新增分包商答辩
 * @param data
 */
export function addDefenceRecords(data){
  return request({
    url: projectApiUrl+'/sub-contract-reply',
    method: 'post',
    data: data
  })
}

/**
 * 编辑分包商答辩
 * @param data
 */
export function editDefenceRecords(data){
  return request({
    url: projectApiUrl+'/sub-contract-reply/update',
    method: 'post',
    data: data
  })
}


/**
 * 投标单位信息分页
 * @param data
 */
export function getReplyBidderList(data){
  return request({
    url: projectApiUrl+'/sub-contract-reply/bidder',
    method: 'get',
    params: data
  })
}

/**
 * 新增投标单位信息
 * @param data
 */
export function addDefenceBidders(data){
  return request({
    url: projectApiUrl+'/sub-contract-reply/bidder',
    method: 'post',
    data: data
  })
}

/**
 * 编辑投标单位信息
 * @param data
 */
export function editDefenceBidders(data){
  return request({
    url: projectApiUrl+'/sub-contract-reply/bidder/update',
    method: 'post',
    data: data
  })
}


/**
 * 删除投标单位信息
 * @param data
 */
export function delDefenceBidders(data){
  return request({
    url: projectApiUrl+'/sub-contract-reply/bidder-delete',
    method: 'post',
    data: data
  })
}


/**
 * 招标内容
 * @param data
 */
export function getTenderContents(data){
  return request({
    url: projectApiUrl+'/construction/master-plan/query-work-or-pack',
    method: 'get',
    params: data
  })
}


/**
 * 删除分包商技术答辩信息
 * @param data
 */
export function delContractReply(data){
  return request({
    url: projectApiUrl+'/sub-contract-reply/delete',
    method: 'post',
    data: data
  })
}

